home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Dr. Windows 3
/
dr win3.zip
/
dr win3
/
WINWORDS
/
WE_20N.ZIP
/
WEEXTSRC.ZI_
/
WE_EXT.H
< prev
next >
Wrap
Text File
|
1992-04-03
|
13KB
|
338 lines
/*-------------------------------------------------------------------------*\
| |
| |
| WE_EXT.H - Include file for WinEdit DLL Extension Processor |
| |
| |
\*-------------------------------------------------------------------------*/
/*
* all extension commands fall in this range
*
*/
#define WE_CMDFIRST WM_USER + 100
#define WE_CMDLAST WM_USER + 999
/*
* all user-defined command IDs must be in this range
*
*/
#define WE_EXTFIRST WM_USER + 500
#define WE_EXTLAST WE_CMDLAST
/*
*
* W M _ C O M M A N D I D V A L U E S
*
*
* Sample use shown in: SAMPLES\TEMPLATE\WE_EXT.RC
*
*
* You can define menu items and/or accelerators to use
* the following internal WinEdit command IDs. Your DLL
* will NOT be called to handle these events. You can
* also use SendMessage() or PostMessage() to send these
* command IDs as the wParam value in a WM_COMMAND message
* to WinEdit.
*
* Listed to the right are the function equivalents (if any).
* Note that by using the macro function calls, you can pass
* parameters to WinEdit to gain additional functionality.
* Using the functions also gains you additional error checking
* and parameter validation.
*
*/
/*
*
* F I L E M E N U
*
*/
#define IDM_FILENEW 5001
#define IDM_FILEOPEN 5002
#define IDM_FILEMERGE 5003
#define IDM_FILESAVE 5004
#define IDM_FILESAVEAS 5005
#define IDM_FILEPRINT 5006
#define IDM_FILEPRINTERSETUP 5007
#define IDM_FILEPAGESETUP 5008
#define IDM_FILESETPREF 5009
#define IDM_FILEEXIT 5010
#define IDM_FILELIST 5017
/*
*
* E D I T M E N U
*
*/
#define IDM_EDITUNDO 5101
#define IDM_EDITREDO 5102
#define IDM_EDITCUT 5103
#define IDM_EDITCOPY 5104
#define IDM_EDITPASTE 5105
#define IDM_EDITCLEAR 5106
#define IDM_EDITUP 5107
#define IDM_EDITDOWN 5108
#define IDM_EDITLEFT 5109
#define IDM_EDITRIGHT 5110
#define IDM_EDITHOME 5111
#define IDM_EDITEND 5112
#define IDM_EDITPAGEUP 5113
#define IDM_EDITPAGEDOWN 5114
#define IDM_EDITWORDLEFT 5115
#define IDM_EDITWORDRIGHT 5116
#define IDM_EDITTOPOFFILE 5117
#define IDM_EDITENDOFFILE 5118
#define IDM_EDITTAB 5119
#define IDM_EDITBACKTAB 5120
#define IDM_EDITSELECTALL 5121
#define IDM_EDITSTARTSELECTION 5122
#define IDM_EDITENDSELECTION 5123
#define IDM_EDITSELECTLEFT 5124
#define IDM_EDITSELECTRIGHT 5125
#define IDM_EDITSELECTUP 5126
#define IDM_EDITSELECTDOWN 5127
#define IDM_EDITSELECTHOME 5128
#define IDM_EDITSELECTEND 5129
#define IDM_EDITSELECTPAGEUP 5130
#define IDM_EDITSELECTPAGEDOWN 5131
#define IDM_EDITSELECTWORDLEFT 5132
#define IDM_EDITSELECTWORDRIGHT 5133
#define IDM_EDITSELECTTOPOFFILE 5134
#define IDM_EDITSELECTENDOFFILE 5135
#define IDM_EDITTOGGLEWRAP 5136
#define IDM_EDITTOGGLEINS 5137
#define IDM_EDITINSERTSTRING 5138
#define IDM_EDITBACKSPACE 5139
#define IDM_EDITCOPYLINE 5140
#define IDM_EDITCUTLINE 5141
#define IDM_EDITGOTOLINE 5142
#define IDM_EDITGOTOCOLUMN 5143
#define IDM_EDITSETBOOKMARK 5144
#define IDM_EDITGOTOBOOKMARK 5145
#define IDM_EDITSETCOLUMNBLOCK 5146
#define IDM_SEARCHFIND 5201
#define IDM_SEARCHNEXT 5202
#define IDM_SEARCHCHANGE 5203
#define IDM_SEARCHNEXTERR 5204
#define IDM_SEARCHPREVERR 5205
#define IDM_SEARCHVIEWEDOUT 5206
#define IDM_MACROSTARTRECORD 5300
#define IDM_MACROSTOPRECORD 5301
#define IDM_MACROSTOPPLAY 5302
#define IDM_MACROSTARTPLAY 5303
#define IDM_TOOLBAR 5400
#define IDM_COMPILE 5500
#define IDM_MAKE 5501
#define IDM_REBUILD 5502
#define IDM_DEBUG 5503
#define IDM_EXECUTE 5504
#define IDM_MAKECONFIG 5505
#define IDM_WINDOWMIN 5600
#define IDM_WINDOWMAX 5601
#define IDM_WINDOWNEXT 5602
#define IDM_WINDOWRESTORE 5603
#define IDM_WINDOWCLOSE 5604
#define IDM_WINDOWTILE 5605
#define IDM_WINDOWCASCADE 5606
#define IDM_WINDOWICONS 5607
#define IDM_WINDOWCLOSEALL 5608
#define IDM_WINDOWCHILD 5609
#define IDM_HELPINDEX 5700
#define IDM_HELPKEYBOARD 5701
#define IDM_HELPCOMMANDS 5702
#define IDM_HELPPROCEDURES 5703
#define IDM_HELPHELP 5704
#define IDM_HELPKEYWORDS 5705
#define IDM_HELPABOUT 5706
/*
* Request and Notifications message IDs sent to your DLL by
* WinEdit. Check the sample file WE_EXT.C and the
* documentation for details on the responses your DLL is
* expected to return to WinEdit.
*
*/
#define WEN_LOADMENU WE_CMDFIRST + 200
#define WEN_GETWINDOWMENU WE_CMDFIRST + 201
#define WEN_GETMACROMENU WE_CMDFIRST + 202
#define WEN_LOADSHORTMENU WE_CMDFIRST + 203
#define WEN_END WE_CMDFIRST + 204
#define WEN_LOADACCELS WE_CMDFIRST + 205
#define WEN_INITMENU WE_CMDFIRST + 206
#define WEN_MACROSTARTPLAY WE_CMDFIRST + 207
#define WEN_MACROSTOPPLAY WE_CMDFIRST + 208
#define WEN_MACROSTARTRECORD WE_CMDFIRST + 209
#define WEN_MACROSTOPRECORD WE_CMDFIRST + 210
#define WEN_RBUTTONDOWN WE_CMDFIRST + 211
#define WEN_RBUTTONDOWNC WE_CMDFIRST + 212
#define WEN_RBUTTONDOWNS WE_CMDFIRST + 213
#define WEN_RBUTTONDOWNSC WE_CMDFIRST + 214
/*
* lParam struct used in the WEM_SEARCH* messages
* to pass the search and replace parameters
*/
typedef struct tagSEARCHRECORD
{
UINT fComplain: 1; /* show 'not found' etc. to user */
UINT fPrompt: 1; /* bring up search/replace dialog box */
UINT fMatchCase: 1; /* exact case match only */
UINT fForward: 1; /* forward direction */
UINT fChangeAll: 1; /* change all */
UINT fConfirm: 1; /* ask user to confirm changes */
UINT fUnused: 11;
LPSTR lpSearchText; /* string to search for */
LPSTR lpReplaceText; /* string to replace found text with */
} SEARCHRECORD;
typedef SEARCHRECORD FAR *LPSEARCHRECORD;
/* icon ID values you can use with edAddButton and edDeleteButton */
#define IDLEXICON 6 /* main icon */
#define IDNOTE 2 /* icon for child windows */
#define IDONEUP 4 /* one-up print icon */
#define IDTWOUP 5 /* two-up print icon */
#define OPEN 48 /* file open */
#define SAVE 49 /* file save */
#define PRINT 50 /* file print */
#define FIND 51 /* find */
#define FINDNEXT 52 /* find next */
#define CHANGE 53 /* change */
#define NEXT 54 /* next error */
#define PREV 55 /* prev error */
#define COMPILE 56 /* compile */
#define MAKE 57